<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>运算符</title>
</head>
<body>
<h1>三元运算符 表达式？整错的：错误的</h1>
<div th:text="${sex eq 1 ? '男' : '女'}"></div>

<h1>算术运算</h1>
20+5=<span th:text="20+5"></span><br/>
20-5=<span th:text="20-5"></span><br/>
20*5=<span th:text="20*5"></span><br/>
20/5=<span th:text="20/5"></span><br/>

<h1>关系比较</h1>
5>2为<span th:if="5 gt 2">真</span><br/>
5<2<span th:unless="5 lt 2">假</span><br/>
1>=1<span th:if="1 ge 1">真</span><br/>
</body>
</html>